package com.wanjia.order.server.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  zhulei
 * @Date 2022-06-16 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table ( name ="prodect" )
public class Prodect  implements Serializable {



	/**
	 * 商品id
	 */
	@JsonIgnore
   	@Column(name = "prodect_id" )
	private Integer prodectId;

	/**
	 * 商品名
	 */
	@JsonIgnore
   	@Column(name = "prodect_name" )
	private String prodectName;

	/**
	 * 分类自编码
	 */
	@JsonIgnore
   	@Column(name = "prodect_type_details_code" )
	private Integer prodectTypeDetailsCode;

	/**
	 * 商品介绍
	 */
	@JsonIgnore
   	@Column(name = "prodect_introduce" )
	private String prodectIntroduce;

	/**
	 * 库存
	 */
   	@Column(name = "count" )
	private Integer count;

	/**
	 * 单价
	 */
   	@Column(name = "price" )
	private BigDecimal price;

	/**
	 * 特价
	 */
	@JsonIgnore
   	@Column(name = "specials" )
	private BigDecimal specials;

	/**
	 * 生产日期
	 */
	@JsonIgnore
   	@Column(name = "production_date" )
	private Date productionDate;

	/**
	 * 保质期
	 */
	@JsonIgnore
   	@Column(name = "expiration_date" )
	private Date expirationDate;
	@Transient
	private String prodectDetailsId;
	@Transient
	private String picSic;
	@Transient
	private String prodectTypeDetailsName;
	@Transient
	private String prodectDetailsName;
	@Transient
	private Integer orderQuantity;

}
